package com.lzy.pattern.flyweight;

/**
 * @ClassName: Client
 * @Description: TODO
 * @Author: LiuZy
 * @Date: 2022/4/26 20:16
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        AbstractBox box1 = BoxFactory.getInstance().getBox("L");
        AbstractBox box2 = BoxFactory.getInstance().getBox("O");
        AbstractBox box3 = BoxFactory.getInstance().getBox("I");

        box1.display("黑色");
        box2.display("黄色");
        box3.display("红色");
    }

}